import java.util.Scanner;

public class Multiple {
    public static  void mutiple_Table(int n){
        for (int i = 1; i <= n ; i++) {
          int j=0;
            for (j = 1; j <=i ; j++) {
                System.out.print( i +"*"+ j + "=" + i*j+"  ");
            }
            System.out.println();
        }

    }
    //写一个乘法口诀表
    public static void main(String[] args) {
        System.out.println("输入整数N");
        Scanner scan=new Scanner(System.in);
        int n= scan.nextInt();
        mutiple_Table(n);
    }
}
